Differences between Stored Procedure and Function in SQL Server